﻿@{
    Layout = null;
    var currentAction = ViewContext.RouteData.Values["Controller"];
    
}

@if (Request.IsAuthenticated)
{ 
    <div class="navbar">
        <div class="navbar-inner">

            <ul class="nav">

                @foreach (LeadCRM.Entities.Menu item in Settings.GetMenu())
                {
                    <li @if (Request.RawUrl.Contains(item.MenuURL))
                        {
                        @:class="active"
                    }>
                        <a href="@item.MenuURL">@item.MenuName</a>

                    </li>
                }
            </ul>
        </div>
    </div>
}
else
{
    <div class="navbar">
        <div class="navbar-inner">
            <ul class="nav">
                <li>
                    <a href="/">Home</a>
                </li>
                <li>
                    @Html.ActionLink("Register", "Register", "Account")

                </li>
            </ul>
        </div>
    </div>    
}